<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'HomeController@welcome');
//注册常用认证路由，如注册，登录/退出，找回密码。@see Illuminate\Routing\Router::auth()
//Auth::routes();

Route::get('home', 'HomeController@index')->name('home');
//Route::get('api', function() {
//    return file_get_contents(resource_path('views/d520fd5be6e91bafcae36178781ed907.html'));
//});

Route::any('test', 'HomeController@test')->name('test');
Route::get('test2', 'HomeController@test2')->name('test2');


//后台路由
//Route::group(['middleware' => ['auth'], 'as' => 'admin.'], function() {
//    Route::get('cnarea/province', 'CommonController@province')->name('cnarea.province');
//    Route::get('cnarea/city', 'CommonController@city')->name('cnarea.city');
//    Route::get('cnarea/district', 'CommonController@district')->name('cnarea.district');
//    Route::any('upload/image', 'UploadController@image')->name("upload.image");
//    Route::get('upload/token', 'UploadController@token')->name("upload.token");
//});

